<?php

class MarkUnreadWorkflowNodeAction extends AbstractRunTimeWorkflowNodeAction
{

  protected function configure ()
  {
    $this->setDefaultOption(self::OPTION_LABEL, 'Als ungelesen markieren');
  }

  /**
   * @param AbstractWorkflowContainer $container
   */
  public function execute (AbstractWorkflowContainer $container)
  {
    $object = $this->node->getObject();
    $object->setIsRead(false);
    $object->save();
  }
}